package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 试卷
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class ExamPaper extends BaseModel<ExamPaper> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 选题老师
     */
    private Integer teacher;

    /**
     * 试卷标题
     */
    private String title;

    /**
     * 试卷课程
     */
    private Integer courseId;

    /**
     * 试卷描述
     */
    private String description;
    
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private List<PaperZone> zones;
    
    
    private Integer type;
    
    @TableField(exist = false)
    private List<Integer> tags;
    
    
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private ExamPaperType typeInfo;
    
    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private List<Tag> tagInfos;

   

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTeacher() {
        return teacher;
    }

    public void setTeacher(Integer teacher) {
        this.teacher = teacher;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

   
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExamPaper{" +
        "id=" + id +
        ", teacher=" + teacher +
        ", title=" + title +
        ", courseId=" + courseId +
        ", description=" + description +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }

	public List<PaperZone> getZones() {
		return zones;
	}

	public void setZones(List<PaperZone> zones) {
		this.zones = zones;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public List<Integer> getTags() {
		return tags;
	}

	public void setTags(List<Integer> tags) {
		this.tags = tags;
	}

	public ExamPaperType getTypeInfo() {
		return typeInfo;
	}

	public void setTypeInfo(ExamPaperType typeInfo) {
		this.typeInfo = typeInfo;
	}

	public List<Tag> getTagInfos() {
		return tagInfos;
	}

	public void setTagInfos(List<Tag> tagInfos) {
		this.tagInfos = tagInfos;
	}
}
